﻿using CommunityToolkit.Mvvm.ComponentModel;
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZoneLine.Common;

namespace ZoneLine.Models
{
    [Index(nameof(HOP040StationResult) + "index_1", nameof(AbsScanCode), IsUnique = false)]
    [Index(nameof(HOP040StationResult) + "_tid", nameof(CreateTime), IsUnique = false)]
    public class HOP040StationResult : HStationResultBase
    {
        private float _threadLength;
        [DgColumnAttr("螺纹长度")]
        public float ThreadLength
        {
            get { return _threadLength; }
            set => SetProperty(ref _threadLength, value);
        }

        private string _nutScanCode;
        //[DgColumnAttr("螺纹长度")]
        public string NutScanCode
        {
            get { return _nutScanCode; }
            set => SetProperty(ref _nutScanCode, value);
        }

        private float _tigtenTorque;
        [DgColumnAttr("拧紧力矩")]
        public float TigtenTorque
        {
            get { return _tigtenTorque; }
            set => SetProperty(ref _tigtenTorque, value);
        }

        private float _tigtenAngle;
        [DgColumnAttr("拧紧角度")]
        public float TigtenAngle
        {
            get { return _tigtenAngle; }
            set => SetProperty(ref _tigtenAngle, value);
        }

        private string _supportPadScanCode;
        /// <summary>
        /// 支撑垫批次码
        /// addr:150
        /// </summary>
        public string SupportPadScanCode
        {
            get { return _supportPadScanCode; }
            set =>SetProperty(ref _supportPadScanCode, value);
        }

        private string _nutScanCode2;
        /// <summary>
        /// 螺母批次码2
        /// addr:214
        /// </summary>
        [DgColumnAttr("螺母批次码")]
        public string NutScanCode2
        {
            get { return _nutScanCode2; }
            set =>SetProperty(ref _nutScanCode2, value);    
        }

        private string _componentScanCode;
        /// <summary>
        /// 合件批次码
        /// addr:246
        /// </summary>
        [DgColumnAttr("合件批次码")]
        public string ComponentScanCode
        {
            get { return _componentScanCode; }
            set => SetProperty(ref _componentScanCode, value);
        }

        private string _dustCapScanCode;
        /// <summary>
        /// 防尘盖批次码
        /// addr:278
        /// </summary>
        [DgColumnAttr("防尘盖批次码")]
        public string DustCapScanCode
        {
            get { return _dustCapScanCode; }
            set =>SetProperty(ref _dustCapScanCode, value);
        }

        private float _pressPosition;
        /// <summary>  
        /// 压机位置  
        /// </summary>  
        //[DgColumnAttr("压机位置")]
        public new float PressPosition
        {
            get { return _pressPosition; }
            set { SetProperty(ref _pressPosition, value); } // 假设 SetProperty 方法存在并支持float类型  
        }

        private float _pressForce;
        /// <summary>  
        /// 压机压力  
        /// </summary>  
        //[DgColumnAttr("压机压力")]
        public new float PressForce
        {
            get { return _pressForce; }
            set { SetProperty(ref _pressForce, value); } // 假设 SetProperty 方法存在并支持float类型  
        }

        private string _bushScanCode;
        /// <summary>  
        /// 衬套批次  
        /// </summary>  
        //[DgColumnAttr("衬套批次", Index = 7)]
        public new string BushScanCode
        {
            get { return _bushScanCode; }
            set { SetProperty(ref _bushScanCode, value); } // 假设 SetProperty 方法存在  
        }
    }
}
